package com.example.demo.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @description:
 * @author: cj
 * @create: 15-03-28 15:48:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Supplier {
    /**
     * 主键
     */
    private ObjectId id;
    /**
     * 名称
     */
    private String name;
    /**
     * 图片
     */
    private String img;
    /**
     * 简介
     */
    private String about;
    /**
     * 商品集合
     */
    private List<Good> goods;

    public Supplier(String name) {
        this.name = name;
    }
}
